import request from '@/utils/request'

const base_api = '/admin/product/category'

export const FindCategoryByParentId = id => {
  return request({
    url: `${base_api}/getCategoryList/${id}`,
    method: 'get',
  })
}

export const ExportCategoryData = () => {
  return request({
    url: `${base_api}/exportData`,
    method: 'get',
    responseType: 'blob', //二进制类型
  })
}
